package com.xbongbong.saas.domain.dao;

import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import com.xbongbong.saas.domain.entity.OnlinePaymentFlowEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface OnlinePaymentFlowDao {
    Integer insert(OnlinePaymentFlowEntity entity);

    void insertBatch(List<OnlinePaymentFlowEntity> list);

    OnlinePaymentFlowEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(OnlinePaymentFlowEntity entity);
    /**
     * 批量更新单个字段
     * @param list
     * @param corpid
     * @return
     */
    Integer updateBatch(@Param("list") List<UpdateDataEntity> list, @Param("corpid") String corpid);

    List<OnlinePaymentFlowEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);
}